<?php


namespace app\common\validate;


use think\Validate;

class ReportCreateValidate extends Validate
{
    protected $rule = [
        'name' => 'require|length:1,20',
        'phone' => 'require|mobile',
        'staff_no' => 'require',
    ];
    protected $message = [
        'name.require' => '姓名是必须的',
        'name.length' => '姓名只能在1-20字符之间',
        'phone.require' => '手机号是必须的',
        'phone.mobile' => '手机号必须格式不正确',
        'staff_no.require' => '员工编号是必须的',
    ];
}